package org.hz.socket;

import java.io.IOException;
import java.net.ServerSocket;
import java.net.Socket;

public class BuildSocket {
	public static void main(String[] args) throws IOException {
		int port = 8080;
		ServerSocket server = new ServerSocket(port);
		while(true){
			Socket socket = server.accept();
			Runnable r=new ThreadTest(socket);
			Thread t=new Thread(r);
			t.start();
		
		}
	}
}
